package fpzhan.plane.program.describe;

import fpzhan.plane.program.connect.ChainCodeBlockConnect;

import java.util.function.Function;

public class AloneBranchComment {

    private Function<String, ChainCodeBlockConnect> function;

    public AloneBranchComment(Function<String, ChainCodeBlockConnect> function) {
        this.function = function;
    }

    public ChainCodeBlockConnect comment(String comment){
        return this.function.apply(comment);
    }
}
